import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get_connect/http/src/utils/utils.dart';

class LoadingView extends StatelessWidget {
  LoadingView({Key? key, this.top});
  double? top;
  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        // LottieBuilder.asset(
        //   'assets/jsons/page_loading.json',
        //   animate: true,
        //   repeat: true,
        //   reverse: false,
        //   width: Get.width * 0.6,
        //   fit: BoxFit.fitWidth,
        // ),
        // SizedBox(
        //   height: 20.r,
        // ),
        // Text(
        //   '努力加载中',
        //   style: pfMediumStyle(color: ColorsUtil.subTitle, fontSize: font13),
        // ),
        Container(
          constraints: BoxConstraints(
            minHeight: top ?? Get.height * 0.1,
          ),
        )
      ],
    );
  }
}
